home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Help / locale / help / english / sys / execute.doc < prev    next >
Encoding:
Text File  |  2000-10-06  |  1.3 KB  |  38 lines

  1. EXECUTE
  2.  
  3. Executes a script with optional argument substitution.
  4.  
  5. Format
  6.  
  7. EXECUTE <script> [{<arguments>}]
  8.  
  9. Template
  10.  
  11. FILE/A
  12.  
  13. Location
  14.  
  15. C:
  16.  
  17. EXECUTE is used to run scripts of AmigaDOS commands. The lines in the script
  18. are executed as if they had been entered at a Shell prompt. If the s
  19. protection bit of a file is set and the file is in the search path, enter
  20. only the file name; the EXECUTE command is not needed.
  21.  
  22. You can use parameter substitution in scripts by including special keywords
  23. in the script. When these keywords are used, you can pass variables to the
  24. script by including the variable in the EXECUTE command line. Before the
  25. script is executed, AmigaDOS checks the parameter names in the script against
  26. any arguments given on the command line. If any match, AmigaDOS substitutes
  27. the values specified on the command line for the parameter name in the
  28. script. You can also specify default values for AmigaDOS to use if no
  29. variables are given. If you have not specified a variable and there is no
  30. default specified in the script, then the value of the parameter is empty (no
  31. substitution is made).
  32.  
  33. The allowable keywords for parameter substitution are explained in Chapter 5.
  34. Each keyword command line must be prefaced with a dot character (.).
  35.  
  36. See also: IF, SKIP, FAILAT, LAB, ECHO, RUN, QUIT. For examples using the
  37. EXECUTE command, see Chapter 8.
  38.